const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer:{
    open:true,
    host:"zyq",
    port:"1995",
    proxy:{
        "/api1":{
            target:"http://gmall-h5-api.atguigu.cn",
            changeOrigin:true,
            pathRewrite:{
                "^/api1":""
            }
        }
    }
  },
  configureWebpack:{
    resolve:{
      alias:{
        "@assets":"@/assets",
        "@pages":"@/pages",
        "@utils":"@/utils",
        "@comp":"@/component"
      }
    }
  }
})
